<%@ page pageEncoding="UTF-8"%>
<%@ page import="com.example.entity.Article" %>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="test/html;utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>WEB-INF/jsp/articleDetail.jsp</title>
    <%@ include file="../comm/header.jsp" %>
    <script src="../../static/js/test.js"></script>
</head>
<body>
<div class="container">
    <h3>文章详情页: </h3>
    <a class="btn btn-secondary" href="/article" role="button">返回列表</a>
    <%
        Article article = (Article)request.getAttribute("article");
    %>
    <h1><%=article.getTitle()%></h1>
    <h4><%=article.getAuthor()%></h4>
    <hr>
    <p><%=article.getContent()%></p>
</div>
</body>
</html>